home *** CD-ROM | disk | FTP | other *** search
- /*
- cvdemovw.h
-
- Main window for the demo
-
- C++/Views 2.0 Demo
- Copyright (c) 1992, by Liant Software Corp.
- ALL RIGHTS RESERVED.
-
- Revision History:
- -----------------
- */
-
- #ifndef cvdemovw_h
- #define cvdemovw_h
- #include "mdiappvw.h"
-
- class VMenuItem;
- class VPopupMenu;
- class ToolBar;
-
- class ClassView;
- class FeatureView;
- class IntroView;
- class PlatformView;
- class SketchView;
- class Messenger;
-
- class VBrush;
- class VFont;
-
- class DemoAppView : public VMdiAppView {
- private:
- ToolBar *tools;
-
- VPopupMenu *fileMenu;
- VPopupMenu *featureMenu;
- VPopupMenu *exampleMenu;
-
- VBrush *toolBrush;
- VFont *toolFont;
-
- VString aboutTopic;
- VString aboutSource;
-
- public:
- DemoAppView();
- ~DemoAppView();
-
- VClass *iam();
- boolean free();
-
- ClassView *classView;
- FeatureView *featureView;
- PlatformView *platformView;
- IntroView *introView;
- SketchView *sketchView;
-
- unsigned visitFlag;
-
- boolean menuDialog(VMenuItem*);
- boolean menuFeature(VMenuItem*);
- boolean menuIntro(VMenuItem*);
- boolean menuPlatform(VMenuItem*);
- boolean menuClass(VMenuItem*);
- boolean menuOrder(VMenuItem*);
- boolean menuAbout(VMenuItem*);
- boolean menuAboutCurrWin(VMenuItem*);
- boolean menuExit(VMenuItem*);
- boolean menuSketch(VMenuItem*);
-
- void init(void);
- void initWindow(void);
- boolean resized(int, int);
- boolean close(void);
- boolean okToQuit(void);
- void updateMenu(void);
- void setAboutNames(char *tpc, char *src);
- };
-
- /* bit masks for 'visited' flag */
- #define VISIT_CLASS 0x0001
- #define VISIT_FEATURE 0x0002
- #define VISIT_PLATFORM 0x0004
- #define VISIT_DIALOG 0x0008
- #define VISIT_SKETCH 0x0010
- #define VISIT_ABOUT 0x0020
-
- extern VClass *DemoAppViewCls;
-
- extern Messenger *cvTextFile;
-
- #endif /* cvdemovw_h */
-